-- GENERATED SPELL FOR [Amani'shi Axe Thrower] --


function spell0_23542(pUnit, Event) --@Axe Volley,Self--
pUnit:FullCastSpellOnTarget(42359,pUnit)
pUnit:RegisterEvent('Sorts_23542', 2000, 1)
end

function spell1_23542(pUnit, Event) --@Knockdown,n/a--
pUnit:FullCastSpellOnTarget(35011,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23542', 2000, 1)
end

function spell2_23542(pUnit, Event) --@Raptor Strike,n/a--
pUnit:FullCastSpellOnTarget(31566,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23542', 528, 1)
end

function spell3_23542(pUnit, Event) --@Throw Axe,n/a--
pUnit:FullCastSpellOnTarget(42332,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23542', 1000, 1)
end

function Sorts_23542(pUnit, Event)
local choix_sorts_23542 = math.random(0, 3)
if choix_sorts_23542 == 0 then
pUnit:RegisterEvent('spell0_23542', 1, 1)
end
if choix_sorts_23542 == 1 then
pUnit:RegisterEvent('spell1_23542', 1, 1)
end
if choix_sorts_23542 == 2 then
pUnit:RegisterEvent('spell2_23542', 1, 1)
end
if choix_sorts_23542 == 3 then
pUnit:RegisterEvent('spell3_23542', 1, 1)
end
end

function mob23542_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_23542', math.random(1500, 3000), 1)
end

function mob23542_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23542_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23542_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(23542, 1, 'mob23542_Action')
RegisterUnitEvent(23542, 2, 'mob23542_Leave')
RegisterUnitEvent(23542, 3, 'mob23542_Kill')
RegisterUnitEvent(23542, 4, 'mob23542_Die')
